**** dT 0.000 * top TEST ../../../../bin/varnishtest/tests/b00023.vtc starting **** top extmacro def pkg_version=trunk **** top extmacro def pkg_branch=trunk **** top extmacro def pwd=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest **** top extmacro def date(...) **** top extmacro def string(...) **** top extmacro def localhost=127.0.0.1 **** top extmacro def bad_backend=127.0.0.1:37543 **** top extmacro def listen_addr=127.0.0.1:0 **** top extmacro def bad_ip=192.0.2.255 **** top extmacro def topbuild=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub **** top extmacro def topsrc=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/../.. **** top macro def testdir=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest/../../../../bin/varnishtest/tests **** top macro def tmpdir=/home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24 **** top macro def vtcid=vtc.1612527.38244b24 ** top === varnishtest "Check that the first_byte_timeout works" * top VTEST Check that the first_byte_timeout works ** top === server s1 { ** s1 Starting server **** s1 macro def s1_addr=127.0.0.1 **** s1 macro def s1_port=35629 **** s1 macro def s1_sock=127.0.0.1:35629 * s1 Listen on 127.0.0.1:35629 ** top === varnish v1 -vcl+backend { **** dT 0.001 ** s1 Started on 127.0.0.1:35629 (1 iterations) **** dT 0.013 ** v1 Launch *** v1 CMD: cd ${pwd} && exec varnishd -d -n /home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24/v1 -i v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p thread_pool_min=10 -p debug=+vtc_mode -p vsl_mask=+Debug,+H2RxHdr,+H2RxBody -p h2_initial_window_size=1m -p h2_rx_window_low_water=64k -a '127.0.0.1:0' -M '127.0.0.1 43453' -P /home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24/v1/varnishd.pid -p vmod_path=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/vmod/.libs *** v1 CMD: cd /home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest && exec varnishd -d -n /home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24/v1 -i v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p thread_pool_min=10 -p debug=+vtc_mode -p vsl_mask=+Debug,+H2RxHdr,+H2RxBody -p h2_initial_window_size=1m -p h2_rx_window_low_water=64k -a '127.0.0.1:0' -M '127.0.0.1 43453' -P /home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24/v1/varnishd.pid -p vmod_path=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/vmod/.libs *** v1 PID: 1612546 **** v1 macro def v1_pid=1612546 **** v1 macro def v1_name=/home/linux1/VT/_vtest_tmp/vtc.1612527.38244b24/v1 **** dT 0.025 *** v1 debug|Info: Working directory not mounted on tmpfs partition **** dT 0.034 *** v1 debug|Debug: Version: varnish-trunk revision df8ee3355e519bdc9bdb33dc154769bcf7b3d13f *** v1 debug|Debug: Platform: Linux,4.18.0-553.34.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit *** v1 debug|200 329 *** v1 debug|----------------------------- *** v1 debug|Varnish Cache CLI 1.0 *** v1 debug|----------------------------- *** v1 debug|Linux,4.18.0-553.34.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit *** v1 debug|varnish-trunk revision df8ee3355e519bdc9bdb33dc154769bcf7b3d13f *** v1 debug| *** v1 debug|Type 'help' for command list. *** v1 debug|Type 'quit' to close CLI session. *** v1 debug|Type 'start' to launch worker process. *** v1 debug| **** dT 0.137 **** v1 CLIPOLL 1 0x1 0x0 0x0 *** v1 CLI connection fd = 7 *** v1 CLI RX 107 **** v1 CLI RX|nflkflnwqdjimeropwbkqrrdrfzfxwbt **** v1 CLI RX| **** v1 CLI RX|Authentication required. **** v1 CLI TX|auth 201dd98f3893e095f6086a8aad69ada8db252df20146c42fa3ce6548cab83151 **** dT 0.143 *** v1 CLI RX 200 **** v1 CLI RX|----------------------------- **** v1 CLI RX|Varnish Cache CLI 1.0 **** v1 CLI RX|----------------------------- **** v1 CLI RX|Linux,4.18.0-553.34.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit **** v1 CLI RX|varnish-trunk revision df8ee3355e519bdc9bdb33dc154769bcf7b3d13f **** v1 CLI RX| **** v1 CLI RX|Type 'help' for command list. **** v1 CLI RX|Type 'quit' to close CLI session. **** v1 CLI RX|Type 'start' to launch worker process. **** v1 CLI TX|vcl.inline vcl1 << %XJEIFLH|)Xspa8P **** v1 CLI TX|vcl 4.1; **** v1 CLI TX|backend s1 { .host = "127.0.0.1"; .port = "35629"; } **** v1 CLI TX| **** v1 CLI TX| **** v1 CLI TX|\tsub vcl_recv { **** v1 CLI TX|\t\treturn (pass); **** v1 CLI TX|\t} **** v1 CLI TX|\tsub vcl_backend_fetch { **** v1 CLI TX|\t\tset bereq.first_byte_timeout = 0.5s; **** v1 CLI TX|\t} **** v1 CLI TX| **** v1 CLI TX|%XJEIFLH|)Xspa8P **** dT 0.248 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.352 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.455 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.555 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.656 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.757 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.819 *** v1 CLI RX 200 **** v1 CLI RX|VCL compiled. **** v1 CLI TX|vcl.use vcl1 *** v1 CLI RX 200 **** v1 CLI RX|VCL 'vcl1' now active ** v1 Start **** v1 CLI TX|start **** dT 0.866 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.871 *** v1 debug|Debug: Child (1612559) Started **** dT 0.909 *** v1 debug|Child launched OK **** dT 0.921 *** v1 CLI RX 200 *** v1 wait-running **** v1 CLI TX|status **** dT 0.925 *** v1 debug|Info: Child (1612559) said Child starts **** dT 0.927 *** v1 CLI RX 200 **** v1 CLI RX|Child in state running **** v1 CLI TX|debug.listen_address **** dT 0.969 **** v1 vsl| 0 CLI - Rd vcl.load "vcl1" vcl_vcl1.1736844431.026131/vgc.so 1auto **** v1 vsl| 0 CLI - Wr 200 52 Loaded "vcl_vcl1.1736844431.026131/vgc.so" as "vcl1" **** v1 vsl| 0 CLI - Rd vcl.use "vcl1" **** v1 vsl| 0 CLI - Wr 200 0 **** v1 vsl| 0 CLI - Rd start **** v1 vsl| 0 Debug - sockopt: Setting SO_LINGER for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting SO_KEEPALIVE for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting SO_SNDTIMEO for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting SO_RCVTIMEO for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting TCP_NODELAY for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPIDLE for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPCNT for a0=127.0.0.1:37545 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPINTVL for a0=127.0.0.1:37545 **** v1 vsl| 0 CLI - Wr 200 0 **** dT 0.980 *** v1 CLI RX 200 **** v1 CLI RX|a0 127.0.0.1 37545 **** v1 CLI TX|debug.xid 1000 **** dT 1.056 *** v1 CLI RX 200 **** v1 CLI RX|XID is 1000 chunk 1 **** v1 CLI TX|debug.listen_address **** dT 1.073 **** v1 vsl| 0 CLI - Rd debug.listen_address **** v1 vsl| 0 CLI - Wr 200 19 a0 127.0.0.1 37545 **** v1 vsl| 0 CLI - Rd debug.xid 1000 **** v1 vsl| 0 CLI - Wr 200 19 XID is 1000 chunk 1 **** dT 1.114 *** v1 CLI RX 200 **** v1 CLI RX|a0 127.0.0.1 37545 ** v1 Listen on 127.0.0.1 37545 **** v1 macro def v1_addr=127.0.0.1 **** v1 macro def v1_port=37545 **** v1 macro def v1_sock=127.0.0.1:37545 **** v1 macro def v1_a0_addr=127.0.0.1 **** v1 macro def v1_a0_port=37545 **** v1 macro def v1_a0_sock=127.0.0.1:37545 ** top === logexpect l1 -v v1 { ** l1 === expect * 1002 FetchError "first byte timeout" ** top === client c1 { ** c1 Starting client ** c1 Waiting for client **** dT 1.119 ** c1 Started on 127.0.0.1:37545 (1 iterations) *** c1 Connect to 127.0.0.1:37545 **** l1 begin| *** l1 test | expect * 1002 FetchError first byte timeout *** c1 connected fd 22 from 127.0.0.1 35302 to 127.0.0.1:37545 ** c1 === txreq **** c1 txreq|GET / HTTP/1.1\r **** c1 txreq|Host: 127.0.0.1\r **** c1 txreq|User-Agent: c1\r **** c1 txreq|\r ** c1 === rxresp **** dT 1.125 *** s1 accepted fd 5 127.0.0.1 45882 ** s1 === rxreq **** s1 rxhdr|GET / HTTP/1.1\r **** s1 rxhdr|Host: 127.0.0.1\r **** s1 rxhdr|User-Agent: c1\r **** s1 rxhdr|X-Forwarded-For: 127.0.0.1\r **** s1 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** s1 rxhdr|X-Varnish: 1002\r **** s1 rxhdr|\r **** s1 rxhdrlen = 125 **** s1 http[ 0] |GET **** s1 http[ 1] |/ **** s1 http[ 2] |HTTP/1.1 **** s1 http[ 3] |Host: 127.0.0.1 **** s1 http[ 4] |User-Agent: c1 **** s1 http[ 5] |X-Forwarded-For: 127.0.0.1 **** s1 http[ 6] |Via: 1.1 v1 (Varnish/trunk) **** s1 http[ 7] |X-Varnish: 1002 **** s1 bodylen = 0 ** s1 === delay 1 *** s1 delaying 1 second(s) **** dT 1.173 **** v1 vsl| 0 CLI - Rd debug.listen_address **** v1 vsl| 0 CLI - Wr 200 19 a0 127.0.0.1 37545 **** v1 vsl| 1000 Begin c sess 0 HTTP/1 **** v1 vsl| 1000 SessOpen c 127.0.0.1 35302 a0 127.0.0.1 37545 1736844432.001859 22 **** v1 vsl| 1000 Debug c sockopt: SO_LINGER may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: SO_KEEPALIVE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: SO_SNDTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: SO_RCVTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: TCP_NODELAY may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPIDLE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPCNT may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPINTVL may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1000 Link c req 1001 rxreq **** dT 1.631 **** c1 rxhdr|HTTP/1.1 503 Backend fetch failed\r **** c1 rxhdr|Date: Tue, 14 Jan 2025 08:47:12 GMT\r **** c1 rxhdr|Server: Varnish\r **** c1 rxhdr|Content-Type: text/html; charset=utf-8\r **** c1 rxhdr|Retry-After: 5\r **** c1 rxhdr|X-Varnish: 1001\r **** c1 rxhdr|Age: 0\r **** c1 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** c1 rxhdr|Content-Length: 281\r **** c1 rxhdr|Connection: keep-alive\r **** c1 rxhdr|\r **** c1 rxhdrlen = 246 **** c1 http[ 0] |HTTP/1.1 **** c1 http[ 1] |503 **** c1 http[ 2] |Backend fetch failed **** c1 http[ 3] |Date: Tue, 14 Jan 2025 08:47:12 GMT **** c1 http[ 4] |Server: Varnish **** c1 http[ 5] |Content-Type: text/html; charset=utf-8 **** c1 http[ 6] |Retry-After: 5 **** c1 http[ 7] |X-Varnish: 1001 **** c1 http[ 8] |Age: 0 **** c1 http[ 9] |Via: 1.1 v1 (Varnish/trunk) **** c1 http[10] |Content-Length: 281 **** c1 http[11] |Connection: keep-alive **** c1 c-l| **** c1 c-l| **** c1 c-l|
**** c1 c-l|Backend fetch failed
**** c1 c-l|XID: 1002
**** c1 c-l|Varnish cache server
**** c1 c-l| **** c1 c-l| **** c1 bodylen = 281 ** c1 === expect resp.status == 503 **** c1 EXPECT resp.status (503) == "503" match *** c1 closing fd 22 ** c1 Ending **** dT 1.634 ** top === logexpect l1 -wait ** l1 Waiting for logexp **** dT 1.637 **** l1 match| 1002 FetchError b first byte timeout **** l1 done | **** dT 1.639 ** top === server s1 { ** s1 Waiting for server (4/-1) **** dT 1.679 **** v1 vsl| 1002 Begin b bereq 1001 pass **** v1 vsl| 1002 VCL_use b vcl1 **** v1 vsl| 1002 Timestamp b Start: 1736844432.005260 0.000000 0.000000 **** v1 vsl| 1002 BereqMethod b GET **** v1 vsl| 1002 BereqURL b / **** v1 vsl| 1002 BereqProtocol b HTTP/1.1 **** v1 vsl| 1002 BereqHeader b Host: 127.0.0.1 **** v1 vsl| 1002 BereqHeader b User-Agent: c1 **** v1 vsl| 1002 BereqHeader b X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1002 BereqHeader b Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1002 BereqHeader b X-Varnish: 1002 **** v1 vsl| 1002 VCL_call b BACKEND_FETCH **** v1 vsl| 1002 VCL_return b fetch **** v1 vsl| 1002 Timestamp b Fetch: 1736844432.005283 0.000022 0.000022 **** v1 vsl| 1002 Timestamp b Connected: 1736844432.005343 0.000082 0.000060 **** v1 vsl| 1002 BackendOpen b 25 s1 127.0.0.1 35629 127.0.0.1 45882 connect **** v1 vsl| 1002 Timestamp b Bereq: 1736844432.005370 0.000110 0.000027 **** v1 vsl| 1002 FetchError b first byte timeout **** v1 vsl| 1002 BackendClose b 25 s1 close RX_TIMEOUT **** v1 vsl| 1002 Timestamp b Beresp: 1736844432.510696 0.505436 0.505325 **** v1 vsl| 1002 Timestamp b Error: 1736844432.510702 0.505441 0.000005 **** v1 vsl| 1002 BerespProtocol b HTTP/1.1 **** v1 vsl| 1002 BerespStatus b 503 **** v1 vsl| 1002 BerespReason b Backend fetch failed **** v1 vsl| 1002 BerespHeader b Date: Tue, 14 Jan 2025 08:47:12 GMT **** v1 vsl| 1002 BerespHeader b Server: Varnish **** v1 vsl| 1002 VCL_call b BACKEND_ERROR **** v1 vsl| 1002 BerespHeader b Content-Type: text/html; charset=utf-8 **** v1 vsl| 1002 BerespHeader b Retry-After: 5 **** v1 vsl| 1002 VCL_return b deliver **** v1 vsl| 1002 Storage b malloc Transient **** v1 vsl| 1002 Length b 281 **** v1 vsl| 1002 BereqAcct b 125 0 125 0 0 0 **** v1 vsl| 1002 End b **** v1 vsl| 1001 Begin c req 1000 rxreq **** v1 vsl| 1001 Timestamp c Start: 1736844432.001901 0.000000 0.000000 **** v1 vsl| 1001 Timestamp c Req: 1736844432.001901 0.000000 0.000000 **** v1 vsl| 1001 VCL_use c vcl1 **** v1 vsl| 1001 ReqStart c 127.0.0.1 35302 a0 **** v1 vsl| 1001 ReqMethod c GET **** v1 vsl| 1001 ReqURL c / **** v1 vsl| 1001 ReqProtocol c HTTP/1.1 **** v1 vsl| 1001 ReqHeader c Host: 127.0.0.1 **** v1 vsl| 1001 ReqHeader c User-Agent: c1 **** v1 vsl| 1001 ReqHeader c X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1001 ReqHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1001 VCL_call c RECV **** v1 vsl| 1001 VCL_return c pass **** v1 vsl| 1001 VCL_call c HASH **** v1 vsl| 1001 VCL_return c lookup **** v1 vsl| 1001 VCL_call c PASS **** v1 vsl| 1001 VCL_return c fetch **** v1 vsl| 1001 Link c bereq 1002 pass **** v1 vsl| 1001 Timestamp c Fetch: 1736844432.510927 0.509026 0.509026 **** v1 vsl| 1001 RespProtocol c HTTP/1.1 **** v1 vsl| 1001 RespStatus c 503 **** v1 vsl| 1001 RespReason c Backend fetch failed **** v1 vsl| 1001 RespHeader c Date: Tue, 14 Jan 2025 08:47:12 GMT **** v1 vsl| 1001 RespHeader c Server: Varnish **** v1 vsl| 1001 RespHeader c Content-Type: text/html; charset=utf-8 **** v1 vsl| 1001 RespHeader c Retry-After: 5 **** v1 vsl| 1001 RespHeader c X-Varnish: 1001 **** v1 vsl| 1001 RespHeader c Age: 0 **** v1 vsl| 1001 RespHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1001 VCL_call c DELIVER **** v1 vsl| 1001 VCL_return c deliver **** v1 vsl| 1001 Timestamp c Process: 1736844432.510968 0.509067 0.000041 **** v1 vsl| 1001 Filters c **** v1 vsl| 1001 RespHeader c Content-Length: 281 **** v1 vsl| 1001 RespHeader c Connection: keep-alive **** v1 vsl| 1001 Timestamp c Resp: 1736844432.511017 0.509116 0.000048 **** v1 vsl| 1001 ReqAcct c 51 0 51 246 281 527 **** v1 vsl| 1001 End c **** v1 vsl| 1000 SessClose c REM_CLOSE 0.513 **** v1 vsl| 1000 End c **** dT 2.126 ** s1 === txresp **** s1 txresp|HTTP/1.1 200 OK\r **** s1 txresp|Date: Tue, 14 Jan 2025 08:47:13 GMT\r **** s1 txresp|Server: s1\r **** s1 txresp|Content-Length: 0\r **** s1 txresp|\r *** s1 shutting fd 5 ** s1 Ending **** dT 2.130 ** s1 Starting server **** s1 macro def s1_addr=127.0.0.1 **** s1 macro def s1_port=35629 **** s1 macro def s1_sock=127.0.0.1:35629 * s1 Listen on 127.0.0.1:35629 ** top === client c2 { ** c2 Starting client ** c2 Waiting for client **** dT 2.132 ** s1 Started on 127.0.0.1:35629 (1 iterations) **** dT 2.133 ** c2 Started on 127.0.0.1:37545 (1 iterations) *** c2 Connect to 127.0.0.1:37545 *** c2 connected fd 22 from 127.0.0.1 35308 to 127.0.0.1:37545 ** c2 === txreq **** c2 txreq|GET / HTTP/1.1\r **** c2 txreq|Host: 127.0.0.1\r **** c2 txreq|User-Agent: c2\r **** c2 txreq|\r ** c2 === rxresp **** dT 2.137 *** s1 accepted fd 5 127.0.0.1 45894 ** s1 === rxreq **** s1 rxhdr|GET / HTTP/1.1\r **** s1 rxhdr|Host: 127.0.0.1\r **** s1 rxhdr|User-Agent: c2\r **** s1 rxhdr|X-Forwarded-For: 127.0.0.1\r **** s1 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** s1 rxhdr|X-Varnish: 1005\r **** s1 rxhdr|\r **** s1 rxhdrlen = 125 **** s1 http[ 0] |GET **** s1 http[ 1] |/ **** s1 http[ 2] |HTTP/1.1 **** s1 http[ 3] |Host: 127.0.0.1 **** s1 http[ 4] |User-Agent: c2 **** s1 http[ 5] |X-Forwarded-For: 127.0.0.1 **** s1 http[ 6] |Via: 1.1 v1 (Varnish/trunk) **** s1 http[ 7] |X-Varnish: 1005 **** s1 bodylen = 0 ** s1 === delay 0.2 *** s1 delaying 0.2 second(s) **** dT 2.194 **** v1 vsl| 1003 Begin c sess 0 HTTP/1 **** v1 vsl| 1003 SessOpen c 127.0.0.1 35308 a0 127.0.0.1 37545 1736844433.015942 23 **** v1 vsl| 1003 Debug c sockopt: SO_LINGER may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: SO_KEEPALIVE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: SO_SNDTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: SO_RCVTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: TCP_NODELAY may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: TCP_KEEPIDLE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: TCP_KEEPCNT may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Debug c sockopt: TCP_KEEPINTVL may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1003 Link c req 1004 rxreq **** dT 2.342 ** s1 === txresp **** s1 txresp|HTTP/1.1 200 OK\r **** s1 txresp|Date: Tue, 14 Jan 2025 08:47:13 GMT\r **** s1 txresp|Server: s1\r **** s1 txresp|Content-Length: 0\r **** s1 txresp|\r *** s1 shutting fd 5 ** s1 Ending **** dT 2.357 **** c2 rxhdr|HTTP/1.1 200 OK\r **** c2 rxhdr|Date: Tue, 14 Jan 2025 08:47:13 GMT\r **** c2 rxhdr|Server: s1\r **** c2 rxhdr|Content-Length: 0\r **** c2 rxhdr|X-Varnish: 1004\r **** c2 rxhdr|Age: 0\r **** c2 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** c2 rxhdr|Connection: keep-alive\r **** c2 rxhdr|\r **** c2 rxhdrlen = 165 **** c2 http[ 0] |HTTP/1.1 **** c2 http[ 1] |200 **** c2 http[ 2] |OK **** c2 http[ 3] |Date: Tue, 14 Jan 2025 08:47:13 GMT **** c2 http[ 4] |Server: s1 **** c2 http[ 5] |Content-Length: 0 **** c2 http[ 6] |X-Varnish: 1004 **** c2 http[ 7] |Age: 0 **** c2 http[ 8] |Via: 1.1 v1 (Varnish/trunk) **** c2 http[ 9] |Connection: keep-alive **** c2 bodylen = 0 ** c2 === expect resp.status == 200 **** c2 EXPECT resp.status (200) == "200" match *** c2 closing fd 22 ** c2 Ending **** dT 2.361 ** top === varnish v1 -vcl+backend { **** v1 CLI TX|vcl.inline vcl2 << %XJEIFLH|)Xspa8P **** v1 CLI TX|vcl 4.1; **** v1 CLI TX|backend s1 { .host = "127.0.0.1"; .port = "35629"; } **** v1 CLI TX| **** v1 CLI TX| **** v1 CLI TX|\tsub vcl_recv { **** v1 CLI TX|\t\treturn (pass); **** v1 CLI TX|\t} **** v1 CLI TX| **** v1 CLI TX|%XJEIFLH|)Xspa8P **** dT 2.394 **** v1 vsl| 1005 Begin b bereq 1004 pass **** v1 vsl| 1005 VCL_use b vcl1 **** v1 vsl| 1005 Timestamp b Start: 1736844433.017575 0.000000 0.000000 **** v1 vsl| 1005 BereqMethod b GET **** v1 vsl| 1005 BereqURL b / **** v1 vsl| 1005 BereqProtocol b HTTP/1.1 **** v1 vsl| 1005 BereqHeader b Host: 127.0.0.1 **** v1 vsl| 1005 BereqHeader b User-Agent: c2 **** v1 vsl| 1005 BereqHeader b X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1005 BereqHeader b Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1005 BereqHeader b X-Varnish: 1005 **** v1 vsl| 1005 VCL_call b BACKEND_FETCH **** v1 vsl| 1005 VCL_return b fetch **** v1 vsl| 1005 Timestamp b Fetch: 1736844433.017598 0.000023 0.000023 **** v1 vsl| 1005 Timestamp b Connected: 1736844433.017645 0.000069 0.000046 **** v1 vsl| 1005 BackendOpen b 25 s1 127.0.0.1 35629 127.0.0.1 45894 connect **** v1 vsl| 1005 Timestamp b Bereq: 1736844433.017669 0.000094 0.000024 **** v1 vsl| 1005 BerespProtocol b HTTP/1.1 **** v1 vsl| 1005 BerespStatus b 200 **** v1 vsl| 1005 BerespReason b OK **** v1 vsl| 1005 BerespHeader b Date: Tue, 14 Jan 2025 08:47:13 GMT **** v1 vsl| 1005 BerespHeader b Server: s1 **** v1 vsl| 1005 BerespHeader b Content-Length: 0 **** v1 vsl| 1005 Timestamp b Beresp: 1736844433.223055 0.205480 0.205385 **** v1 vsl| 1005 VCL_call b BACKEND_RESPONSE **** v1 vsl| 1005 VCL_return b deliver **** v1 vsl| 1005 Timestamp b Process: 1736844433.223076 0.205501 0.000021 **** v1 vsl| 1005 Filters b **** v1 vsl| 1005 Storage b malloc Transient **** v1 vsl| 1005 Fetch_Body b 0 none - **** v1 vsl| 1005 BackendClose b 25 s1 recycle **** v1 vsl| 1005 Timestamp b BerespBody: 1736844433.233438 0.215862 0.010361 **** v1 vsl| 1005 Length b 0 **** v1 vsl| 1005 BereqAcct b 125 0 125 87 0 87 **** v1 vsl| 1005 End b **** v1 vsl| 1004 Begin c req 1003 rxreq **** v1 vsl| 1004 Timestamp c Start: 1736844433.015992 0.000000 0.000000 **** v1 vsl| 1004 Timestamp c Req: 1736844433.015992 0.000000 0.000000 **** v1 vsl| 1004 VCL_use c vcl1 **** v1 vsl| 1004 ReqStart c 127.0.0.1 35308 a0 **** v1 vsl| 1004 ReqMethod c GET **** v1 vsl| 1004 ReqURL c / **** v1 vsl| 1004 ReqProtocol c HTTP/1.1 **** v1 vsl| 1004 ReqHeader c Host: 127.0.0.1 **** v1 vsl| 1004 ReqHeader c User-Agent: c2 **** v1 vsl| 1004 ReqHeader c X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1004 ReqHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1004 VCL_call c RECV **** v1 vsl| 1004 VCL_return c pass **** v1 vsl| 1004 VCL_call c HASH **** v1 vsl| 1004 VCL_return c lookup **** v1 vsl| 1004 VCL_call c PASS **** v1 vsl| 1004 VCL_return c fetch **** v1 vsl| 1004 Link c bereq 1005 pass **** v1 vsl| 1004 Timestamp c Fetch: 1736844433.236359 0.220367 0.220367 **** v1 vsl| 1004 RespProtocol c HTTP/1.1 **** v1 vsl| 1004 RespStatus c 200 **** v1 vsl| 1004 RespReason c OK **** v1 vsl| 1004 RespHeader c Date: Tue, 14 Jan 2025 08:47:13 GMT **** v1 vsl| 1004 RespHeader c Server: s1 **** v1 vsl| 1004 RespHeader c Content-Length: 0 **** v1 vsl| 1004 RespHeader c X-Varnish: 1004 **** v1 vsl| 1004 RespHeader c Age: 0 **** v1 vsl| 1004 RespHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1004 VCL_call c DELIVER **** v1 vsl| 1004 VCL_return c deliver **** v1 vsl| 1004 Timestamp c Process: 1736844433.236395 0.220402 0.000035 **** v1 vsl| 1004 Filters c **** v1 vsl| 1004 RespHeader c Connection: keep-alive **** v1 vsl| 1004 Timestamp c Resp: 1736844433.236451 0.220458 0.000055 **** v1 vsl| 1004 ReqAcct c 51 0 51 165 0 165 **** v1 vsl| 1004 End c **** v1 vsl| 1003 SessClose c REM_CLOSE 0.226 **** v1 vsl| 1003 End c **** dT 2.704 *** v1 CLI RX 200 **** v1 CLI TX|vcl.use vcl2 **** dT 2.712 *** v1 CLI RX 200 **** v1 CLI RX|VCL 'vcl2' now active ** top === varnish v1 -cliok "param.set first_byte_timeout 0.5" **** v1 CLI TX|param.set first_byte_timeout 0.5 **** dT 2.757 *** v1 CLI RX 200 ** v1 CLI 200Backend fetch failed
**** c1 c-l|XID: 1008
**** c1 c-l|Varnish cache server
**** c1 c-l| **** c1 c-l| **** c1 bodylen = 281 ** c1 === expect resp.status == 503 **** c1 EXPECT resp.status (503) == "503" match *** c1 closing fd 22 ** c1 Ending **** dT 3.277 ** top === server s1 { ** s1 Waiting for server (4/-1) **** dT 3.308 **** v1 vsl| 1008 Begin b bereq 1007 pass **** v1 vsl| 1008 VCL_use b vcl2 **** v1 vsl| 1008 Timestamp b Start: 1736844433.651530 0.000000 0.000000 **** v1 vsl| 1008 BereqMethod b GET **** v1 vsl| 1008 BereqURL b / **** v1 vsl| 1008 BereqProtocol b HTTP/1.1 **** v1 vsl| 1008 BereqHeader b Host: 127.0.0.1 **** v1 vsl| 1008 BereqHeader b User-Agent: c1 **** v1 vsl| 1008 BereqHeader b X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1008 BereqHeader b Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1008 BereqHeader b X-Varnish: 1008 **** v1 vsl| 1008 VCL_call b BACKEND_FETCH **** v1 vsl| 1008 VCL_return b fetch **** v1 vsl| 1008 Timestamp b Fetch: 1736844433.651553 0.000022 0.000022 **** v1 vsl| 1008 Timestamp b Connected: 1736844433.651609 0.000078 0.000055 **** v1 vsl| 1008 BackendOpen b 25 s1 127.0.0.1 35629 127.0.0.1 45910 connect **** v1 vsl| 1008 Timestamp b Bereq: 1736844433.651633 0.000102 0.000024 **** v1 vsl| 1008 FetchError b first byte timeout **** v1 vsl| 1008 BackendClose b 25 s1 close RX_TIMEOUT **** v1 vsl| 1008 Timestamp b Beresp: 1736844434.155044 0.503513 0.503411 **** v1 vsl| 1008 Timestamp b Error: 1736844434.155049 0.503518 0.000005 **** v1 vsl| 1008 BerespProtocol b HTTP/1.1 **** v1 vsl| 1008 BerespStatus b 503 **** v1 vsl| 1008 BerespReason b Backend fetch failed **** v1 vsl| 1008 BerespHeader b Date: Tue, 14 Jan 2025 08:47:14 GMT **** v1 vsl| 1008 BerespHeader b Server: Varnish **** v1 vsl| 1008 VCL_call b BACKEND_ERROR **** v1 vsl| 1008 BerespHeader b Content-Type: text/html; charset=utf-8 **** v1 vsl| 1008 BerespHeader b Retry-After: 5 **** v1 vsl| 1008 VCL_return b deliver **** v1 vsl| 1008 Storage b malloc Transient **** v1 vsl| 1008 Length b 281 **** v1 vsl| 1008 BereqAcct b 125 0 125 0 0 0 **** v1 vsl| 1008 End b **** v1 vsl| 1007 Begin c req 1006 rxreq **** v1 vsl| 1007 Timestamp c Start: 1736844433.650056 0.000000 0.000000 **** v1 vsl| 1007 Timestamp c Req: 1736844433.650056 0.000000 0.000000 **** v1 vsl| 1007 VCL_use c vcl2 **** v1 vsl| 1007 ReqStart c 127.0.0.1 35316 a0 **** v1 vsl| 1007 ReqMethod c GET **** v1 vsl| 1007 ReqURL c / **** v1 vsl| 1007 ReqProtocol c HTTP/1.1 **** v1 vsl| 1007 ReqHeader c Host: 127.0.0.1 **** v1 vsl| 1007 ReqHeader c User-Agent: c1 **** v1 vsl| 1007 ReqHeader c X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1007 ReqHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1007 VCL_call c RECV **** v1 vsl| 1007 VCL_return c pass **** v1 vsl| 1007 VCL_call c HASH **** v1 vsl| 1007 VCL_return c lookup **** v1 vsl| 1007 VCL_call c PASS **** v1 vsl| 1007 VCL_return c fetch **** v1 vsl| 1007 Link c bereq 1008 pass **** v1 vsl| 1007 Timestamp c Fetch: 1736844434.155587 0.505530 0.505530 **** v1 vsl| 1007 RespProtocol c HTTP/1.1 **** v1 vsl| 1007 RespStatus c 503 **** v1 vsl| 1007 RespReason c Backend fetch failed **** v1 vsl| 1007 RespHeader c Date: Tue, 14 Jan 2025 08:47:14 GMT **** v1 vsl| 1007 RespHeader c Server: Varnish **** v1 vsl| 1007 RespHeader c Content-Type: text/html; charset=utf-8 **** v1 vsl| 1007 RespHeader c Retry-After: 5 **** v1 vsl| 1007 RespHeader c X-Varnish: 1007 **** v1 vsl| 1007 RespHeader c Age: 0 **** v1 vsl| 1007 RespHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1007 VCL_call c DELIVER **** v1 vsl| 1007 VCL_return c deliver **** v1 vsl| 1007 Timestamp c Process: 1736844434.155631 0.505574 0.000044 **** v1 vsl| 1007 Filters c **** v1 vsl| 1007 RespHeader c Content-Length: 281 **** v1 vsl| 1007 RespHeader c Connection: keep-alive **** v1 vsl| 1007 Timestamp c Resp: 1736844434.155710 0.505653 0.000078 **** v1 vsl| 1007 ReqAcct c 51 0 51 246 281 527 **** v1 vsl| 1007 End c **** v1 vsl| 1006 SessClose c REM_CLOSE 0.506 **** v1 vsl| 1006 End c **** dT 3.771 ** s1 === txresp **** s1 txresp|HTTP/1.1 200 OK\r **** s1 txresp|Date: Tue, 14 Jan 2025 08:47:14 GMT\r **** s1 txresp|Server: s1\r **** s1 txresp|Content-Length: 0\r **** s1 txresp|\r *** s1 shutting fd 5 ** s1 Ending **** dT 3.774 ** s1 Starting server **** s1 macro def s1_addr=127.0.0.1 **** s1 macro def s1_port=35629 **** s1 macro def s1_sock=127.0.0.1:35629 * s1 Listen on 127.0.0.1:35629 ** top === client c2 -run ** c2 Starting client ** c2 Waiting for client **** dT 3.783 ** c2 Started on 127.0.0.1:37545 (1 iterations) *** c2 Connect to 127.0.0.1:37545 *** c2 connected fd 5 from 127.0.0.1 35322 to 127.0.0.1:37545 ** c2 === txreq **** c2 txreq|GET / HTTP/1.1\r **** c2 txreq|Host: 127.0.0.1\r **** c2 txreq|User-Agent: c2\r **** c2 txreq|\r ** c2 === rxresp **** dT 3.839 **** v1 vsl| 1009 Begin c sess 0 HTTP/1 **** v1 vsl| 1009 SessOpen c 127.0.0.1 35322 a0 127.0.0.1 37545 1736844434.670275 22 **** v1 vsl| 1009 Debug c sockopt: SO_LINGER may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: SO_KEEPALIVE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: SO_SNDTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: SO_RCVTIMEO may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: TCP_NODELAY may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: TCP_KEEPIDLE may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: TCP_KEEPCNT may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Debug c sockopt: TCP_KEEPINTVL may be inherited for a0=127.0.0.1:37545 **** v1 vsl| 1009 Link c req 1010 rxreq **** dT 3.945 **** v1 vsl| 0 CLI - Rd ping **** v1 vsl| 0 CLI - Wr 200 19 PONG 1736844434 1.0 **** dT 4.291 **** c2 rxhdr|HTTP/1.1 503 Backend fetch failed\r **** c2 rxhdr|Date: Tue, 14 Jan 2025 08:47:15 GMT\r **** c2 rxhdr|Server: Varnish\r **** c2 rxhdr|Content-Type: text/html; charset=utf-8\r **** c2 rxhdr|Retry-After: 5\r **** c2 rxhdr|X-Varnish: 1010\r **** c2 rxhdr|Age: 0\r **** c2 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** c2 rxhdr|Content-Length: 281\r **** c2 rxhdr|Connection: keep-alive\r **** c2 rxhdr|\r **** c2 rxhdrlen = 246 **** c2 http[ 0] |HTTP/1.1 **** c2 http[ 1] |503 **** c2 http[ 2] |Backend fetch failed **** c2 http[ 3] |Date: Tue, 14 Jan 2025 08:47:15 GMT **** c2 http[ 4] |Server: Varnish **** c2 http[ 5] |Content-Type: text/html; charset=utf-8 **** c2 http[ 6] |Retry-After: 5 **** c2 http[ 7] |X-Varnish: 1010 **** c2 http[ 8] |Age: 0 **** c2 http[ 9] |Via: 1.1 v1 (Varnish/trunk) **** c2 http[10] |Content-Length: 281 **** c2 http[11] |Connection: keep-alive **** c2 c-l| **** c2 c-l| **** c2 c-l| **** c2 c-l|Backend fetch failed
**** c2 c-l|XID: 1011
**** c2 c-l|Varnish cache server
**** c2 c-l| **** c2 c-l| **** c2 bodylen = 281 ** c2 === expect resp.status == 200 ---- c2 EXPECT resp.status (503) == "200" failed **** dT 4.292 * top RESETTING after ../../../../bin/varnishtest/tests/b00023.vtc ** s1 Waiting for server (4/-1) **** dT 4.353 **** v1 vsl| 1011 Begin b bereq 1010 pass **** v1 vsl| 1011 VCL_use b vcl2 **** v1 vsl| 1011 Timestamp b Start: 1736844434.671156 0.000000 0.000000 **** v1 vsl| 1011 BereqMethod b GET **** v1 vsl| 1011 BereqURL b / **** v1 vsl| 1011 BereqProtocol b HTTP/1.1 **** v1 vsl| 1011 BereqHeader b Host: 127.0.0.1 **** v1 vsl| 1011 BereqHeader b User-Agent: c2 **** v1 vsl| 1011 BereqHeader b X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1011 BereqHeader b Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1011 BereqHeader b X-Varnish: 1011 **** v1 vsl| 1011 VCL_call b BACKEND_FETCH **** v1 vsl| 1011 VCL_return b fetch **** v1 vsl| 1011 Timestamp b Fetch: 1736844434.671177 0.000021 0.000021 **** v1 vsl| 1011 Timestamp b Connected: 1736844434.671223 0.000066 0.000045 **** v1 vsl| 1011 BackendOpen b 25 s1 127.0.0.1 35629 127.0.0.1 45912 connect **** v1 vsl| 1011 Timestamp b Bereq: 1736844434.671246 0.000089 0.000022 **** v1 vsl| 1011 FetchError b first byte timeout **** v1 vsl| 1011 BackendClose b 25 s1 close RX_TIMEOUT **** v1 vsl| 1011 Timestamp b Beresp: 1736844435.170604 0.499448 0.499358 **** v1 vsl| 1011 Timestamp b Error: 1736844435.170610 0.499454 0.000005 **** v1 vsl| 1011 BerespProtocol b HTTP/1.1 **** v1 vsl| 1011 BerespStatus b 503 **** v1 vsl| 1011 BerespReason b Backend fetch failed **** v1 vsl| 1011 BerespHeader b Date: Tue, 14 Jan 2025 08:47:15 GMT **** v1 vsl| 1011 BerespHeader b Server: Varnish **** v1 vsl| 1011 VCL_call b BACKEND_ERROR **** v1 vsl| 1011 BerespHeader b Content-Type: text/html; charset=utf-8 **** v1 vsl| 1011 BerespHeader b Retry-After: 5 **** v1 vsl| 1011 VCL_return b deliver **** v1 vsl| 1011 Storage b malloc Transient **** v1 vsl| 1011 Length b 281 **** v1 vsl| 1011 BereqAcct b 125 0 125 0 0 0 **** v1 vsl| 1011 End b **** v1 vsl| 1010 Begin c req 1009 rxreq **** v1 vsl| 1010 Timestamp c Start: 1736844434.670325 0.000000 0.000000 **** v1 vsl| 1010 Timestamp c Req: 1736844434.670325 0.000000 0.000000 **** v1 vsl| 1010 VCL_use c vcl2 **** v1 vsl| 1010 ReqStart c 127.0.0.1 35322 a0 **** v1 vsl| 1010 ReqMethod c GET **** v1 vsl| 1010 ReqURL c / **** v1 vsl| 1010 ReqProtocol c HTTP/1.1 **** v1 vsl| 1010 ReqHeader c Host: 127.0.0.1 **** v1 vsl| 1010 ReqHeader c User-Agent: c2 **** v1 vsl| 1010 ReqHeader c X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1010 ReqHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1010 VCL_call c RECV **** v1 vsl| 1010 VCL_return c pass **** v1 vsl| 1010 VCL_call c HASH **** v1 vsl| 1010 VCL_return c lookup **** v1 vsl| 1010 VCL_call c PASS **** v1 vsl| 1010 VCL_return c fetch **** v1 vsl| 1010 Link c bereq 1011 pass **** v1 vsl| 1010 Timestamp c Fetch: 1736844435.171749 0.501423 0.501423 **** v1 vsl| 1010 RespProtocol c HTTP/1.1 **** v1 vsl| 1010 RespStatus c 503 **** v1 vsl| 1010 RespReason c Backend fetch failed **** v1 vsl| 1010 RespHeader c Date: Tue, 14 Jan 2025 08:47:15 GMT **** v1 vsl| 1010 RespHeader c Server: Varnish **** v1 vsl| 1010 RespHeader c Content-Type: text/html; charset=utf-8 **** v1 vsl| 1010 RespHeader c Retry-After: 5 **** v1 vsl| 1010 RespHeader c X-Varnish: 1010 **** v1 vsl| 1010 RespHeader c Age: 0 **** v1 vsl| 1010 RespHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1010 VCL_call c DELIVER **** v1 vsl| 1010 VCL_return c deliver **** v1 vsl| 1010 Timestamp c Process: 1736844435.171779 0.501453 0.000030 **** v1 vsl| 1010 Filters c **** v1 vsl| 1010 RespHeader c Content-Length: 281 **** v1 vsl| 1010 RespHeader c Connection: keep-alive **** v1 vsl| 1010 Timestamp c Resp: 1736844435.171834 0.501508 0.000055 **** v1 vsl| 1010 ReqAcct c 51 0 51 246 281 527 **** v1 vsl| 1010 End c **** dT 5.596 ** s1 Started on 127.0.0.1:35629 (1 iterations) ** v1 Wait **** v1 CLI TX|panic.show **** dT 5.644 *** v1 CLI RX 300 **** v1 CLI RX|Child has not panicked or panic has been cleared *** v1 debug|Info: manager stopping child *** v1 debug|Debug: Stopping Child **** dT 5.681 **** v1 vsl| 0 CLI - EOF on CLI connection, worker stops **** dT 5.747 *** v1 debug|Info: Child (1612559) said Child dies *** v1 debug|Info: Child (1612559) ended *** v1 debug|Debug: Child cleanup complete *** v1 debug|Info: manager dies **** v1 STDOUT EOF **** dT 5.786 ** v1 WAIT4 pid=1612546 status=0x0000 (user 0.450331 sys 0.049356) * top TEST ../../../../bin/varnishtest/tests/b00023.vtc FAILED # top TEST ../../../../bin/varnishtest/tests/b00023.vtc FAILED (5.787) exit=2 FAIL tests/b00023.vtc (exit status: 2)